package com.cn.springcloudwechat.mapper.mapper.vaccine;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.cn.springcloudwechat.common.mybatis.Page;
import com.cn.springcloudwechat.model.vaccine.YmVaccine;
import com.cn.springcloudwechat.model.vaccine.YmVaccineType;
import com.cn.springcloudwechat.model.vaccine.YmVaccineTypeWithBLOBs;
import org.springframework.stereotype.Repository;


@Repository
public interface YmVaccineTypeMapper {
    int deleteByPrimaryKey(Long vaccineTypeId);

    int insert(YmVaccineTypeWithBLOBs record);

    int insertSelective(YmVaccineTypeWithBLOBs record);

    YmVaccineTypeWithBLOBs selectByPrimaryKey(Long vaccineTypeId);
    
    /**
	 * 疫苗类型的查询
	 * 
	 * @param YmVaccineTypeWithBLOBs ymVaccineTypeWithBLOBs
	 *           
	 * @return List<YmVaccineTypeWithBLOBs>
	 */
  //  List<YmVaccineTypeWithBLOBs> queryVaccineTypeMapper(/*YmVaccineTypeWithBLOBs ymVaccineTypeWithBLOBs*/Map<String,Object> map);
    List<Object> queryVaccineTypeMapper(@Param("YmVaccineTypeWithBLOBs") YmVaccineTypeWithBLOBs ymVaccineTypeWithBLOBs,Page<Object> page);

    /**
	 * 疫苗关联查询(包括详情)*找到某个疫苗所有所有关联疫苗(管理端)
	 * 
	 * @param YmVaccine YmVaccine
	 *           
	 * @return List<YmVaccine>
	 */
    List<YmVaccineTypeWithBLOBs> queryVaccineRelevanceDetailPcMapper(YmVaccine ymVaccine);
    
    int updateByPrimaryKeySelective(YmVaccineTypeWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(YmVaccineTypeWithBLOBs record);

    int updateByPrimaryKey(YmVaccineType record);

	/**
	 * 查询服务站下所有疫苗
	 * @param stationId
	 * @return
	 */
	List<YmVaccineType>getVaccineTypeByStationId(@Param("stationId") Long stationId,@Param("vaccineName") String vaccineName);

}